package com.woniuxy.yoga.user.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("修改用户基本信息参数")
public class UpdateUserInfoForm {

    @ApiModelProperty("用户昵称")
    @NotNull
    private String userNickName;

    @ApiModelProperty("邮箱")
    @Pattern(regexp = "\\w{5,16}@\\w{2,9}(\\.[a-z]{2,3}){1,2}",message = "邮箱格式有误")
    private String userEmail;
}
